package cn.sherer.beans.kuaishou;

/**
 * 快手登录
 */
public class KsLogin extends KsResult {
    // 公用
    private String open_id;

    // 网站、APP 公用
    private String access_token;
    private int expires_in;
    private String refresh_token;
    private int refresh_token_expires_in;
    private String scopes;

    // 小程序
    private String session_key;

    public KsLogin() {
    }

    public KsLogin(int result, String error_msg) {
        super(result, error_msg);
    }

    public KsLogin(int result, String error, String error_msg) {
        super(result, error, error_msg);
    }

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public int getRefresh_token_expires_in() {
        return refresh_token_expires_in;
    }

    public void setRefresh_token_expires_in(int refresh_token_expires_in) {
        this.refresh_token_expires_in = refresh_token_expires_in;
    }

    public String getScopes() {
        return scopes;
    }

    public void setScopes(String scope) {
        this.scopes = scope;
    }

    public String getSession_key() {
        return session_key;
    }

    public void setSession_key(String session_key) {
        this.session_key = session_key;
    }

    @Override
    public String toString() {
        return "KsLogin{" + "result=" + this.getResult() + ", error=" + this.getError() + ", error_msg=" + this.getError_msg() + ", open_id=" + open_id + ", access_token=" + access_token + ", expires_in=" + expires_in + ", refresh_token=" + refresh_token + ", refresh_token_expires_in=" + refresh_token_expires_in + ", scopes=" + scopes + ", session_key=" + session_key + '}';
    }
}
